package com.cbgolf.oa.presenter;

import com.cbgolf.oa.contract.IPlayerCaddieCarDetailsContract.IPlayerCaddieCarDetailsModel;
import com.cbgolf.oa.contract.IPlayerCaddieCarDetailsContract.IPlayerCaddieCarDetailsPresenter;
import com.cbgolf.oa.contract.IPlayerCaddieCarDetailsContract.IPlayerCaddieCarDetailsView;
import com.cbgolf.oa.entity.LatLon;
import com.cbgolf.oa.entity.ParkFair;
import com.cbgolf.oa.model.PlayerCaddieCarDetailsModelImp;
import java.util.List;

/**
 * @author lq
 */
public class PlayerCaddieCarDetailsPresenterImp implements IPlayerCaddieCarDetailsPresenter {

  private IPlayerCaddieCarDetailsView view;
  private IPlayerCaddieCarDetailsModel model;

  public PlayerCaddieCarDetailsPresenterImp(IPlayerCaddieCarDetailsView view) {
    this.view = view;
    model = new PlayerCaddieCarDetailsModelImp();
  }

  @Override
  public void requestData(int dataType, int requestEvent, long teetimeDate) {
    view.showProgress();
    model.requestData(dataType, requestEvent, teetimeDate);
  }

  @Override
  public void filterPlayerData(List<LatLon> listCaddie,List<ParkFair> listAll) {
    model.filterPlayerData(listCaddie,listAll);
  }
}
